#app {

  .move_left_box,
  .move_right_box {
    width: 100%;
    height: 100%;
  }

  .move_left_box {
    padding-right: 15px;

    .move_left_box_content {
      overflow: auto;
      width: 100%;
      height: 100%;
      box-shadow: 2px 2px 5px 2px #ccc;
      border-radius: 10px;
      padding: 0 25px;

      .move_left_box_content_toolbar {
        padding: 15px 0;
        display: flex;
        border-bottom: 1px solid #000;

        .move_left_box_content_title {
          font-weight: 700;
          font-size: 25px;
          // padding-left: 25px;
          // width: 160px;
          white-space: nowrap;
          overflow: hidden;
          display: block;
          text-overflow: ellipsis;
        }

        .move_left_box_content_title_tools {
          flex: 1;
          justify-content: flex-end;
          min-width: 350px;
          display: flex;
          align-items: center;
          flex-wrap: nowrap;
        }
      }

      .static_view {
        margin-top: 40px;
        width: 100%;
        overflow-x: auto;
        text-align: center;
        cursor: zoom-in;
        // background-color: red;
        // width: 800px;
      }
    }
  }

  .move_right_box {
    .move_right_box_content {
      overflow: auto;
      padding: 6px 15px 0;
      width: 100%;
      height: 100%;
      box-shadow: 2px 2px 5px 2px #ccc;
      border-radius: 10px;

    }
  }


  .topTool_container {
    z-index: 5;
    position: fixed;
    width: 98%;
    height: $sideBarHight;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: $themeTopToolColor;
    border-radius: $themeSize;
    box-shadow: 4px 2px 5px 2px #ccc;
  }

  //总览
  .container_general {
    height: calc(100vh - 100px);
  }


  .sidebar_container {
    transition: width 0.28s;
    width: $sideBarWidth !important;
    min-height: calc(100vh - 100px) !important;
    background-color: $themeSidebarColor;
    position: fixed;
    font-size: 0px;
    top: $sideBarHight+20px;
    bottom: $themeSize;
    left: 1%;
    z-index: 1001;
    overflow: hidden;
    border-radius: $themeSize;
    box-shadow: 2px 6px 10px 2px #999;

    .el-scrollbar__wrap {
      overflow: hidden;
    }

    // reset element-ui css
    // .horizontal-collapse-transition {
    //   transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    // }

    // .scrollbar-wrapper {
    //   overflow-x: hidden !important;
    //     background: url('~@/assets/common/leftnavBg.png') no-repeat 0 100%;
    // }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 16px;
    }

    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;

      .el-menu-item i {
        color: $menuFontColor ;
      }

      a {
        li {
          .svg-icon {
            color: $menuFontColor;
            font-size: 18px;
            vertical-align: middle;

            .icon {
              color: $menuFontColor;
            }

          }

          span {
            color: $menuFontColor;
          }

          &:hover {
            .svg-icon {
              color: $hoverFontColor
            }

            span {
              color: $hoverFontColor;
            }
          }
        }
      }
    }

    // 菜单 hover
    .submenu-title-noDropdown,
    .el-submenu__title {
      &:hover {
        background-color: $themeTopToolColor !important;
        // background: linear-gradient(90deg,$themeTopToolColor
        // 3.89%,  $themeTopToolColor
        // 100%);
      }
    }

    // .is-active>.el-submenu__title {

    //   color: $themeTopToolColor !important;
    // }
    //二级菜单
    & .nest-menu .el-submenu>.el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: $sideBarWidth !important;
      background-color: #f1f1f1 !important;

      .sub-title {
        display: block;
        max-width: 150px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }

      &:hover {
        // box-shadow: 0 -5px red !important;
        background-color: $themeTopToolColor !important;
        // background: linear-gradient(90deg,#ececec
        // 3.89%,  #404a57
        // 100%);
      }

      &.is-active {
        background-color: $themeTopToolColor !important;
      }
    }
  }

  .main_container {
    transition: margin-left .28s;
    margin-left: $sideBarWidth+$themeSize*2;
    position: relative;

    .app_main {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding: 82px 20px 10px 20px;
    }

    .drag_container {
      flex: 1;
      // background-color: red;
      border-radius: 6px;
    }
  }

  .hideSidebar {
    .sidebar_container {
      width: 54px !important;
    }

    .main_container {
      margin-left: 74px;
    }

    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

        .sub-el-icon {
          margin-left: 19px;
        }
      }
    }

    .el-submenu {
      overflow: hidden;

      &>.el-submenu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

        .sub-el-icon {
          margin-left: 19px;
        }

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .withoutAnimation {

    .main_container,
    .sidebar_container {
      transition: none;
    }
  }

  .page_container {
    display: flex;
    // flex-direction: column;

    .page_content {
      // background-color: red;
      // margin-top: 12px;
      background: #fff;
      border-radius: $themeSize;
      box-shadow: 2px 3px 5px 3px #ccc;
      flex: 1;
      padding: 20px;
    }
  }

  .el-submenu__title i {
    margin-right: 6% !important;
  }

  .content_container {
    flex: 1;
    // margin-top: 15px;
    display: flex;
    justify-content: space-between;
    min-height: calc(100vh - 160px);

    .left_container {
      position: relative;
      width: 0;
      flex: 1;
      // height: 100%;
      background-color: #fff;
      border-radius: $themeSize;
      box-shadow: 2px 2px 5px 2px #ccc;
      padding: 15px 25px 0;

      &.management {
        width: 100%;
        padding: 0;
        overflow-y: auto;
        max-height: calc(100vh - 95px);
      }

      &.statistic {
        width: 100%;
        padding: 2px;
        overflow-y: auto;
        max-height: calc(100vh - 95px);
        box-shadow: 2px 2px 5px 2px #fff;

        &::-webkit-scrollbar {
          background-color: transparent;
          width: 6px;
          height: 10px;
        }

        &:hover::-webkit-scrollbar-thumb {
          background-color: rgba(50, 50, 50, 0.25);
          border: 0;
          border-radius: 3px;
        }

        &::-webkit-scrollbar-track {
          background-color: rgba(50, 50, 50, 0.05);
        }
      }

      

      .tableInfo {
        .table_tools {
          display: flex;
          justify-content: space-between;
          padding: 10px;
        }
      }

      .echartInfo {
        .table_tools {
          display: flex;
          justify-content: space-between;
          padding: 10px;
        }

        #echartsList {
          position: relative;
          height: calc(100vh - 260px);

          #echarts {
            width: 100%;
            height: 100%;
          }

          .legend_title {
            width: 150px;
            height: 20px;
            position: absolute;
            top: 10px;
            right: 0;
          }
        }
      }

      .deposit {
        width: 70px;
        padding: 7px;
        position: absolute;
        top: 15px;
        right: 30px;
      }
    }

    .right_container {
      position: relative;
      width: 500px;
      background-color: #fff;
      border-radius: $themeSize;
      // overflow-y: auto;
      margin-left: 10px;
      // height: calc(100vh - 160px);
      box-shadow: 2px 2px 5px 2px #ccc;
    }

    .miniWith {
      width: 20px !important;
      transition: all 0.5s;
    }

    .maxWith {
      width: 30% !important;
      transition: all 0.5s;
    }
  }

  //云图汇 布局容器
  .cloud_container {
    flex: 1;
    display: flex;
    justify-content: space-between;
    min-height: calc(100vh - 160px);

    .left_container_cloud {
      position: relative;
      width: 0;
      flex: 1;
      display: flex;
      flex-direction: column;
      // height: 100%;
      background-color: #fff;
      border-radius: $themeSize;
      box-shadow: 2px 2px 5px 2px #ccc;
      padding: 15px 25px 0;

      .left_container_cloud_title {
        border-bottom: 1px solid #ccc;
      }

      .left_container_cloud_main {
        flex: 1;
        padding: 25px 0;

        #echartsList {
          position: relative;
          height: 100%;

          // background-color: red;
          #echarts {
            width: 100%;
            height: 100%;
          }
        }
      }

      .static_view {
        margin-top: 40px;
        text-align: center;
        cursor: zoom-in;
        // background-color: red;
        // width: 800px;
      }
    }

    .right_container_cloud {
      position: relative;

      width: 500px;
      background-color: #fff;
      border-radius: $themeSize;
      // overflow-y: auto;
      margin-left: 10px;
      // height: calc(100vh - 160px);
      box-shadow: 2px 2px 5px 2px #ccc;

      .right_content {
        padding: 15px 22px 0;
        // background-color: red;
        // position: relative;
        max-height: calc(100vh - 180px);
        overflow-y: auto;
      }
    }

    .miniWith {
      width: 20px !important;
      transition: all 0.5s;
    }

    .maxWith {
      width: 30% !important;
      transition: all 0.5s;
    }

    .fixedIcon {
      position: absolute;
      top: 45%;
      left: 0;
      cursor: pointer;
      width: 15px;
      height: 35px;
      line-height: 35px;
      border-radius: 3px;
      background-color: #dddddd;
    }
  }

  .title_management {
    display: flex;
    align-items: center;

    .hamburger-container {
      line-height: 46px;
      height: 100%;
      float: left;
      cursor: pointer;
      transition: background .3s;
      -webkit-tap-highlight-color: transparent;

      &:hover {
        background: rgba(0, 0, 0, .025)
      }
    }
  }
}

// // when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }

    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
    &:hover {
      // you can use $subMenuHover
      background-color: $menuHover !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}

// // mobile responsive
.mobile {
  .main_container {
    margin-left: 0px;
  }

  .sidebar_container {
    transition: transform .28s;
    width: $sideBarWidth !important;

  }

  &.hideSidebar {
    .sidebar_container {
      pointer-events: none;
      transition-duration: 0.3s;
      transform: translate3d(-$sideBarWidth, 0, 0);
    }
  }
}

//全局tabs样式
.el-tabs__item.is-active {
  color: $themeTopToolColor;

}

// .el-tabs__item {
//   &:hover {
//     // color: $themeTopToolColor;
//   }
// }
.el-tabs__item.is-disabled {
  color: #8f9db2;
  cursor: no-drop;
}

.el-tabs__active-bar {
  background-color: $themeTopToolColor !important;
}

//折叠组件样式
.el-collapse-item__header.is-active {
  color: $themeTopToolColor;
}

.viewer-backdrop {
  background-color: rgba(255, 255, 255, 1) !important;
}

.el-menu::-webkit-scrollbar {
  background-color: transparent;
  width: 6px;
  height: 10px;
}

.el-menu:hover::-webkit-scrollbar-thumb {
  background-color: rgba(50, 50, 50, 0.25);
  border: 0;
  border-radius: 3px;
}

.el-menu::-webkit-scrollbar-track {
  background-color: rgba(50, 50, 50, 0.05);
}
